/* PC端适配样式 */
/* 为大屏幕设备优化布局和视觉效果 */

/* 全局容器最大宽度和居中 */
.app-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 20px;
}

html {
  font-size: 16px;
}

body {
  font-size: 14px;
}

h1 {
  font-size: 30px;
}

h2 {
  font-size: 26px;
}

h3 {
  font-size: 22px;
}

h4 {
  font-size: 20px;
}

h5 {
  font-size: 18px;
}

h6 {
  font-size: 16px;
}

/* 卡片组件优化 */
.el-card {
  border-radius: 8px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
  
  &:hover {
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.15);
  }
  
  .el-card__header {
    padding: 16px 20px;
    border-bottom: 1px solid #ebeef5;
    // background-color: #fafafa;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    font-size: 18px;
    
    .card-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
  }
  
  .el-card__body {
    padding: 20px;
  }
}

/* 表格优化 */
.el-table {
  border-radius: 6px;
  overflow: hidden;
  font-size: 14px;
  
  .el-table__header-wrapper {
    th {
      // background-color: #f5f7fa !important;
      color: #606266;
      font-weight: 600;
      padding: 12px 0;
      font-size: 14px;
    }
  }
  
  .el-table__row {
    &:hover {
      td {
        // background-color: #f5f7fa !important;
      }
    }
  }
  
  td, th {
    padding: 10px 0;
  }
}

/* 表单优化 */
.el-form {
  .el-form-item {
    margin-bottom: 22px;
    
    .el-form-item__label {
      font-weight: 500;
      color: #303133;
      font-size: 14px;
    }
    
    .el-form-item__content {
      line-height: normal;
      font-size: 14px;
    }
  }
}

/* 按钮优化 */
.el-button {
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 14px;
  
  &.el-button--small {
    padding: 6px 12px;
    font-size: 13px;
  }
  
  &.el-button--large {
    padding: 12px 20px;
    font-size: 15px;
  }
}

/* 分页优化 */
.pagination-container {
  margin-top: 24px;
  padding: 16px 0;
  background-color: transparent;
  font-size: 14px;
  
  .el-pagination {
    display: flex;
    justify-content: flex-end;
    font-size: 14px;
    
    .el-pagination__total,
    .el-pagination__sizes,
    .el-pagination__jump {
      margin-right: 12px;
    }
  }
}

/* 弹窗优化 */
.el-dialog {
  border-radius: 8px;
  overflow: hidden;
  
  .el-dialog__header {
    padding: 16px 20px;
    // background-color: #f5f7fa;
    border-bottom: 1px solid #ebeef5;
    
    .el-dialog__title {
      font-weight: 600;
      color: #303133;
      font-size: 20px;
    }
  }
  
  .el-dialog__body {
    padding: 24px 20px;
    // max-height: 70vh;
    font-size: 14px;
  }
  
  .el-dialog__footer {
    padding: 16px 20px;
    border-top: 1px solid #ebeef5;
    // background-color: #f5f7fa;
  }
}

/* 抽屉优化 */
.el-drawer {
  .el-drawer__header {
    padding: 16px 20px;
    margin-bottom: 0;
    border-bottom: 1px solid #ebeef5;
    // background-color: #f5f7fa;
    
    > span {
      font-weight: 600;
      color: #303133;
      font-size: 20px;
    }
  }
  
  .el-drawer__body {
    padding: 20px;
    overflow: auto;
    font-size: 14px;
  }
}

/* 标签页优化 */
.el-tabs {
  .el-tabs__header {
    margin-bottom: 20px;
    
    .el-tabs__nav-wrap::after {
      height: 1px;
    }
  }
  
  .el-tabs__item {
    font-weight: 500;
    padding: 0 24px;
    font-size: 15px;
    
    &.is-active {
      font-weight: 600;
    }
  }
}

/* 面包屑优化 */
.app-breadcrumb.el-breadcrumb {
  display: inline-block;
  font-size: 14px;
  line-height: 50px;
  margin-left: 8px;
  
  .no-redirect {
    color: #97a8be;
    cursor: text;
  }
}

/* 响应式优化 - 针对大屏幕 */
@media screen and (min-width: 1200px) {
  .app-container {
    padding: 24px;
  }
  
  html {
    font-size: 17px;
  }
  
  body {
    font-size: 15px;
  }
  
  h1 {
    font-size: 32px;
  }
  
  h2 {
    font-size: 28px;
  }
  
  h3 {
    font-size: 24px;
  }
  
  h4 {
    font-size: 22px;
  }
  
  h5 {
    font-size: 20px;
  }
  
  h6 {
    font-size: 18px;
  }
  
  .el-card {
    margin-bottom: 24px;
  }
  
  .el-form {
    .el-form-item {
      margin-bottom: 24px;
    }
  }
  
  .el-card__header {
    font-size: 20px;
  }
}

/* 响应式优化 - 针对超大屏幕 */
@media screen and (min-width: 1600px) {
  .app-container {
    padding: 32px;
  }
  
  html {
    font-size: 18px;
  }
  
  body {
    font-size: 16px;
  }
  
  h1 {
    font-size: 36px;
  }
  
  h2 {
    font-size: 32px;
  }
  
  h3 {
    font-size: 28px;
  }
  
  h4 {
    font-size: 24px;
  }
  
  h5 {
    font-size: 22px;
  }
  
  h6 {
    font-size: 20px;
  }
  
  .el-card {
    margin-bottom: 32px;
  }
  
  .el-table {
    font-size: 15px;
  }
  
  .el-card__header {
    font-size: 22px;
  }
}

/* 自定义工具类 */
.w-100 {
  width: 100%;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-start {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.font-bold {
  font-weight: bold;
}

.cursor-pointer {
  cursor: pointer;
}

.overflow-hidden {
  overflow: hidden;
}

.text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.min-h-40 {
  min-height: 40px;
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-thumb {
  // background-color: #c0c4cc;
  border-radius: 4px;
}

::-webkit-scrollbar-track {
  // background-color: #f5f7fa;
}

/* 加载动画优化 */
.el-loading-mask {
  background-color: rgba(255, 255, 255, 0.7);
  
  .el-loading-spinner {
    .circular {
      width: 36px;
      height: 36px;
    }
  }
}